fixed image javascript issue