Auto detect path of image in ImageHelper