Switched to function for getting modified date of image