fix for the case where resource image is too small and clipping goes off