Apply js functionality after image is loaded in image edit