Partial solution to render window size limits for thumbnail generation