modifies image path logic to use either path or formats