[BUGFIX] Important fix for image gallery scaling