Added possible image scaling (not used yet)