Fixed image scaling sometimes