fix for pic size w/ different window sizes