Sounds like it is a relative path issue. This is one of the most common issue faced in a structured website while development and deployment.
There is a method exposed to handle URL's. Have a read:
ResolveUrl[
^].
I would suggest you to use this Tip and resolve the path correctly before setting the control/image source:
Resolving Paths in a Multi-Folder WebSite[
^]