fixed revision JS for images